//
//  Mediator+BKSC.m
//  bestkeep
//
//  Created by 毛韶谦 on 2016/11/3.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "Mediator+BKSC.h"
#import "BKSCAction.h"

NSString *const BKSCTarget = @"BKSCAction";

NSString *const BKSCActionShoppingCarViewController = @"shoppingCarViewController";

NSString *const BKSCGetScAmount = @"getShoppingGoodsAmount:";

@implementation Mediator (BKSC)

-(UIViewController *)BKSC_shoppingCarViewController {
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:BKSCTarget actionName:BKSCActionShoppingCarViewController];
    
    return [self performWithOptions:options];
}

-(void)BKSC_getScAmount:(void (^)(NSString *))block{
    
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:BKSCTarget actionName:BKSCGetScAmount];
    options.parameters = @{@"param" : block};
    [self performWithOptions:options];
}


@end
